package threads;

/**
 * @author apple
 * @Classname RunnableCreateTest
 * @Description 实现Runnable接口创建线程
 * @Date 2020/4/19 16:03
 */
public class RunnableCreateTest {
    public static void main(String[] args) {
        MyRunnable runnableThread = new MyRunnable();
        new Thread(runnableThread).start();
    }
}

class MyRunnable implements Runnable{
    @Override
    public void run() {
        System.out.println("MyRunnable name="+Thread.currentThread());
    }
}
